package main

import (
	"goProject/pro1/Server1/Picture2Base64"
	"log"
	"net"
	"net/http"
	"net/rpc"
)

func main() {
	method := new(Picture2Base64.Method)
	err := rpc.Register(method)
	if err != nil {
		log.Fatal(err)
	}
	rpc.HandleHTTP()
	l, e := net.Listen("tcp", ":8080")
	if e != nil {
		log.Fatal(e)
	}
	err = http.Serve(l, nil)
	if err != nil {
		log.Fatal(err)
	}
}
